DataConnector | ComponentOne
C1.AdoNet.OData Assembly / C1.DataConnector.AdoNet Namespace / C1DataAdapterBase<TCommandImpl> Class / GetBatchedRecordsAffected Method

In This Topic
    GetBatchedRecordsAffected Method (C1DataAdapterBase<TCommandImpl>)
    In This Topic
    Called to retrieve the records affected from a specific batched command, first argument is the value that was returned by AddToBatch when it was called for the command. Default implementation always returns 1, derived classes override for otherwise otherwise DbConcurrencyException will only be thrown if sum of all records in batch is 0. return 0 to cause Update to throw DbConcurrencyException
    Syntax
    'Declaration
     
    Protected Overrides Function GetBatchedRecordsAffected( _
       ByVal commandIdentifier As Integer, _
       ByRef recordsAffected As Integer, _
       ByRef error As Exception _
    ) As Boolean
    protected override bool GetBatchedRecordsAffected( 
       int commandIdentifier,
       out int recordsAffected,
       out Exception error
    )

    Parameters

    commandIdentifier
    recordsAffected
    error
    See Also